//
//  WFNetworking.h
//  afn
//
//  Created by MacBook on 16/12/13.
//  Copyright © 2016年 MacBook. All rights reserved.
//

#import "AFHTTPSessionManager.h"
typedef NS_ENUM(NSUInteger, HttpMethod) {//请求类型
    GET   = 0,    //GET请求
    POST  = 1     //POST请求
};
typedef NS_ENUM(NSUInteger, ResponseType) {//返回数据类型
    JSONResponseSerializer = 0,
    HTTPResponseSerializer = 1
};
@interface WFNetworking : NSObject
+ (instancetype)deafultManeger;
- (void)requestURL:(NSString *)URLString HttpMethod:(HttpMethod)method Parameters:(id)parameters ResponseSerializerType:(ResponseType)type Timeout:(CGFloat)time Succeed:(void (^)(id result))succeed Failure:(void (^)(NSError * err))failure;
@end
